using System;
namespace Senparc.Weixin.MP.AppStore
{
	public class OAuthAccessTokenResult : WxJsonResult
	{
		private int _expiresIn;
		public string access_token
		{
			get;
			set;
		}
		public int expires_in
		{
			get
			{
				return this._expiresIn;
			}
			set
			{
				this._expiresIn = value;
				this.ExpireTimeTicks = DateTime.Now.AddSeconds((double)this.expires_in).Ticks;
			}
		}
		public string refresh_token
		{
			get;
			set;
		}
		public OAuthAccountInfo account_info
		{
			get;
			set;
		}
		public long ExpireTimeTicks
		{
			get;
			set;
		}
		public DateTime ExpireTime
		{
			get
			{
				return new DateTime(this.ExpireTimeTicks);
			}
		}
	}
}
